class Spider {
    constructor(private analyzer:Analyzer,private url:string) {
        
    }

}

// URL id 复用   
const analyzer = new UrlAnalyzer();  // 组合模式的子类
new Spider(analyzer,url)